package com.wolf.client;

import java.lang.reflect.Proxy;

/**
 * @auth: dylan
 * @Desc:
 * @Time: 2024/5/1
 */
public class WolfClientProxy {

    public static <T> T proxy(Class<T> clazz,String host,int port) {
        return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class<?>[]{clazz}, new WolfProxyInvocationHandler(host,port));
    }
}
